package com.hzncc.flowable_diboot.entity.refundmanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* Sap合同退款 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-11-12
* Copyright © MyCorp
*/
@TableName("mdl_sap_refund_contract")
@Getter @Setter @Accessors(chain = true)
public class SapRefundContract extends BaseModel {
    private static final long serialVersionUID = 1413135463496187361L;
     /**
     * 租户
     */
     @NotNull(message = "租户不能为空")
     @TableField()
     private String tenantId;

     /**
     * 合同退款ID
     */
     @Length(max=100, message="合同退款ID长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String refundContractId;

     /**
     * 采购订单编号
     */
     @Length(max=100, message="采购订单编号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String contractCode;

     @TableField()
     private String reviewCategory;

     /**
     * Sap合同号
     */
     @Length(max=100, message="Sap合同号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String sapContractCode;

     /**
     * 开票金额
     */
     @TableField()
     private BigDecimal invoicedAmount;

     /**
     * 合同金额
     */
     @TableField()
     private BigDecimal totalAmount;

     /**
     * 本次退款金额
     */
     @TableField()
     private BigDecimal currentRefundAmount;

     /**
     * 已收款金额
     */
     @TableField()
     private BigDecimal receivedAmount;

     /**
     * 未收款金额
     */
     @TableField()
     private BigDecimal unpaidAmount;

     /**
     * 开票登记ID
     */
     @Length(max=100, message="开票登记ID长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String invoiceRegisterId;


}